
.node-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  padding: 0 10px;
  position: relative;
  user-select: none;

  &::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    border-style: solid;
    border-width: 8px 6px 4px;
    border-color: #cacaca transparent transparent;
    background: #f5f5f7;
  }

  &.start {
    &::before {
      height: 0;
      border-width: 0;
    }
  }
}

.node-wrap-box {
  display: inline-flex;
  flex-direction: column;
  position: relative;
  width: 220px;
  min-height: 72px;
  flex-shrink: 0;
  background: rgb(255, 148, 62);
  //border: solid 0 #ffffff;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;

  &:after {
    pointer-events: none;
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all .1s cubic-bezier(.645, .045, .355, 1);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .1)
  }

  .close {
    display: none;
  }

  &:hover {
    outline: solid 1px #3296fa;

    .close {
      display: inline-flex;
    }
  }
}

.node-content {
  position: relative;
  font-size: 14px;
  padding: 16px 30px 16px 16px;
  user-select: none;

  .text {
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    white-space: nowrap;
  }

  .secondary {
    color: #979797; // 不知道是什么
    opacity: 0.8;
  }

  .arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 14px;
    font-size: 14px;
    color: #979797
  }
}

.approval-node-card {
  headerBg: #FF943E;
}
